package com.surenpi.jenkins.client.blue;

import com.surenpi.jenkins.client.BaseManager;
import com.surenpi.jenkins.client.core.Step;
import java.io.IOException;
import java.util.List;

public class BlueOcean extends BaseManager {
   public static final String baseUrl = "/blue/rest/organizations/jenkins/pipelines";

   public String log(String folder, String jobName, String buildId, String stepId) {
      return null;
   }

   public List<Step> steps(String folder, String jobName, String buildId) throws IOException {
      StringBuffer buf = new StringBuffer("/blue/rest/organizations/jenkins/pipelines");
      buf.append("/").append(folder);
      buf.append("/").append("pipelines/").append(jobName);
      buf.append("/").append("runs");
      buf.append("/").append(buildId).append("/steps");
      return this.getClient().<Step>getList(buf.toString(), Step.class);
   }

   protected String[] getDependencyArray() {
      return new String[0];
   }
}
